//
//  CWCaptureController.h
//  CloudwalkBankCardOCR
//
//  Created by DengWuPing on 16/11/16.
//  Copyright © 2016年 DengWuPing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CloudwalkIDCardOCR.h"

@protocol cwIdCardRecoDelegate <NSObject>

/**
 身份证识别代理方法
 
 @param dict        识别文字信息
 @param idcardType  身份证正反面标示
 @param cardImage   身份证矫正图片
 @param idFaceImage 身份证正面头像
 */
-(void)cwIdCardRecoResult:(NSDictionary *)dict idCardType:(CWIDCardType)idcardType cardImage:(UIImage *)cardImage idFaceImage:(UIImage * )idFaceImage;

@end

@interface CWIDCardCaptureController : UIViewController

//预览显示大小
@property (nonatomic, assign) CGRect previewRect;

@property(nonatomic,strong)NSString  * lisenceStr;//授权码

@property(nonatomic,assign)CWIDCardType  type;//身份证正反面

//图像质量检测阈值
@property(nonatomic,assign)float cardQualityScore; //获取的身份证图片质量分阈值

@property(nonatomic,assign)id<cwIdCardRecoDelegate>delegate;

@end
